<?php
namespace app\index\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'user_phone'  => 'require|max:11|/^1[3-8]{1}[0-9]{9}$/',
        'user_pw'   => 'require|min:6',
        ];
    protected $message = [
        'user_phone' =>'请输入正确的手机号码',
        'user_pw.require'     => '请输入密码',
        'user_pw.min'     => '密码不能少于6位',
        
    ];

}